<template>
  <div class="aboutus">
    <div class="banner">
      <h1 class="title">人工智能行业的务实者和领跑者</h1>
      <p class="desc">
        dxcorp是全球领先的人工智能产品和解决方案公司。<br />
        深度学习是dxcorp的核心竞争力，也是<br />支撑人工智能革命的关键。<br />
        我们目前专注于算法能创造极大价值的领域：<br />消费物联网、城市物联网和供应链物联网。<br />
        我们向客户提供包括算法、软件和硬件产品在内的全栈式、一体化解决方案。
      </p>
      <p class="desc">
      dxcorp 不忘初心 砥砺前行
      </p>
      <div>
        <!-- <div
          class="button button-ghost"
          id="showModal"
          @click="checkVideoFun()"
        >
          <span class="icon icon-play"></span>了解dxcorp
        </div> -->

        <!-- <div
          class="mask"
          v-if="videoState == true"
          @click="masksCloseFun"
        ></div>
        <div class="videomasks" v-if="videoState == true">
          <video :src="videoSrc" controls="controls" autoplay>
            您的浏览器不支持 video 标签。
          </video>
          <div
            style="
              position: absolute;
              right: 10px;
              top: 10px;
              z-index: 1;
              color: #fff;
              font-size: 18px;
              cursor: pointer;
            "
            class="close"
          >
            关闭
          </div>
        </div> -->
      </div>
      <div class="page-content slogan-container">
        <div class="slogan-item slide-in-up done slideInUp">
          <div><span class="title">使命</span></div>
          <p class="desc">用人工智能造福大众</p>
        </div>
        <div class="slogan-item slide-in-up done slideInUp">
          <div><span class="title">愿景</span></div>
          <p class="desc">
            构建连接及赋能百亿物联网设备的<br />
            人工智能基础设施
          </p>
        </div>
        <div class="slogan-item slide-in-up done slideInUp">
          <div><span class="title">文化基因</span></div>
          <p class="desc">技术信仰 价值务实</p>
        </div>
      </div>
    </div>
    <div class="brain">
      <div class="main">
        <img
          src="https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/technology.2accc4a9.jpg"
          alt=""
          class="brainpp-img slide-in-up done slideInUp"
        />
        <div class="content">
          <h2 class="title">备受认可的技术实力</h2>
          <div class="desc">
            <p>
              dxcorp拥有规模领先的计算机视觉（Computer
              Vision）研究院。我们的研究团队开发出了先进的算法，为世界上尖端的人工智能应用奠定了基础。
            </p>
          </div>
          <div class="btns-container">
            <a href="#" target="" class="button button-default">关于dxcorp研究院</a
            ><a href="#" target="_blank" class="button button-default"
              >了解 DxCorp</a
            >
          </div>
        </div>
      </div>
    </div>
    <div class="about-ability">
      <div class="title slide-in-up done slideInUp">历经验证的落地能力</div>
      <p class="desc slide-in-up done slideInUp">
        dxcorp策略性地聚焦于消费物联网、城市物联网和供应链物联网三大垂直领域，逐渐拓展了业务布局。
      </p>
      <div class="abilities-contianer">
        <a href="#" class="ability-item slide-in-up done slideInUp"
          ><div
            class="bg"
            style="
              background-image: url(https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/AIoT_1.dae255b4.jpg);
            "
          >
            <div class="content">
              <div class="title1">消费物联网</div>
              <p class="desc1">
               dxcorp始终为用户服务，为用户创造价值
              </p>
            </div>
          </div></a
        ><a href="#" class="ability-item slide-in-up done slideInUp"
          ><div
            class="bg"
            style="
              background-image: url(https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/AIoT_2.72dd9842.jpg);
            "
          >
            <div class="content">
              <div class="title1">城市物联网</div>
              <p class="desc1">
                 dxcorp进入城市物联网领域，推出了人工智能摄像头，并不断强化硬件能力以配合尖端计算机视觉算法。目前，已累计打造四大品类、数十款硬件产品。同时，基于覆盖云边端的算法、软件、硬件能力。
              </p>
            </div>
          </div></a
        ><a href="#" class="ability-item slide-in-up done slideInUp"
          ><div
            class="bg"
            style="
              background-image: url(https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/AIoT_3.b613039e.jpg);
            "
          >
            <div class="content">
              <div class="title1">供应链物联网</div>
              <p class="desc1">
                dxcorp进入供应链物联网领域，在鞋服、医药、智能制造、零售电商等多个行业的客户提供了仓库、工场及零售店的智能化升级改造。
              </p>
            </div>
          </div></a
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      videoSrc: "",
      videoState: false,
    };
  },
  methods: {
    shovideo() {
      console.log("you click me ++");
    },
    checkVideoFun() {
      this.videoState = true;
      this.videoSrc = require("../../assets/video/aboutus.mp4");
      // this.videoSrc =
      //   "https://cdnstatic.megvii.com/websiteFE/static/video/about-us.7ab93bc7.mp4";
    },
    masksCloseFun() {
      this.videoState = false;
    },
  },
};
</script>

<style lang='scss' scoped>
.aboutus {
  .banner {
    padding-top: 140px;
    padding-bottom: 80px;
    /* height: 800px; */
    font-weight: 500;
    font-size: 24px;
    background-image: url(https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/banner.2263f504.jpg);

    text-align: center;
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    // background-color: #000;
    .title {
      font-size: 32px;
      font-weight: 600;
      line-height: 60px;
      margin-bottom: 24px;
      color: #fff;
    }
    .desc {
      font-size: 16px;
      line-height: 28px;
      margin-bottom: 48px;
    }
    .button {
      display: inline-block;
      width: 180px;
      height: 46px;
      line-height: 46px;
      border-radius: 1px;
      font-size: 16px;
      text-align: center;
      transition: all 0.1s linear 0s;
    }
    .button-ghost {
      background: 0 0;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.5);
    }
    .button {
      margin: 0 auto 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;

      .icon {
        background-position: center;
        width: 18px;
        height: 18px;
        background-image: url(https://cdnstatic.megvii.com/websiteFE/static/img/about_megvii/button_play.7141db62.png);
        display: inline-block;
        background-size: contain;
        margin-right: 12px;
      }
    }
    .slogan-container {
      display: flex;
      min-height: 132px;
      justify-content: space-between;
      max-width: 1160px;
      margin: 0 auto;
      .slogan-item {
        margin-right: 25px;
        height: auto;
        background: rgba(14, 87, 162, 0.3);
        padding: 22px 36px;
        flex: 1;
        transition: all 0.3s linear;
        position: relative;
        top: 0;
        .title {
          font-size: 16px;
          line-height: 22px;
          margin-bottom: 12px;
          display: inline;
        }
        .desc {
          font-size: 16px;
          font-weight: 700;
          color: #fff;
          line-height: 28px;
          margin-bottom: 0px;
        }
      }
    }
    .mask {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      z-index: 10;
      background-color: #000000;
      opacity: 0.6;
    }
    // 内容层 z-index要比遮罩大，否则会被遮盖
    .videomasks {
      max-width: 1200px;
      position: fixed;
      left: 50%;
      top: 50%;
      z-index: 20;
      transform: translate(-50%, -50%);
    }
    .videomasks video {
      width: 100%;
      height: 100%;
    }
  }
  .brain {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
    .main {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 1200px;
      .brainpp-img {
        width: 700px;
        margin-right: 4px;
        flex-shrink: 0;
      }
      .content {
        .title {
          font-size: 32px;
          font-weight: bolder;
          color: #333;
          line-height: 50px;
          margin-bottom: 20px;
        }
        .desc {
          font-size: 14px;
          color: #333;
          line-height: 28px;
          margin-bottom: 32px;
          text-align: left;
          width: 456px;
        }
        .btns-container {
          display: flex;
          .button {
            margin-right: 32px;
            justify-content: center;
            align-items: center;
          }
        }
      }
    }
  }
  .ability {
    position: relative;
    z-index: 3;
    .title {
      position: absolute;
      top: 48px;
      left: 0;
      right: 0;
      text-align: center;
      font-size: 32px;
      font-weight: bolder;
      color: #fff;
      line-height: 60px;
      z-index: 2;
    }
    .desc {
      position: absolute;
      top: 128px;
      font-size: 16px;
      line-height: 28px;
      font-weight: 700;
      z-index: 2;
    }
    .abilities-contianer {
      display: flex;
      justify-content: center;
      .ability-item {
        flex: 1;
        height: 643px;
        position: relative;
        overflow: hidden;
        display: block;
        transition: all 0.5s linear;
        .bg {
          height: 100%;
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
          transition: all 0.3s;
        }
        .content {
          position: absolute;
          width: 100%;
          top: 483px;
          padding: 40px 50px;
          text-align: center;
          transition: all 0.3s;
          .title {
            font-size: 24px;
            font-weight: bolder;
            color: #fff;
            line-height: 40px;
            margin-bottom: 16px;
          }
          .desc {
            font-size: 14px;
            color: #fff;
            line-height: 28px;
            margin-bottom: 16px;
            text-align: left;
            opacity: 0;
            transition: all 0.3s;
            display: -webkit-box;
            overflow: hidden;
            white-space: normal;
            text-overflow: ellipsis;
            word-wrap: break-word;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
          }
        }
      }
      .ability-item:hover .bg {
        transform: scale(1.1, 1.1);
      }
      .ability-item:hover.content {
        transform: translateY(-110px);
      }
      .ability-item:hover .content .desc {
        opacity: 1;
      }
    }
  }

  .about-ability {
    position: relative;
    .title {
      position: absolute;
      top: 48px;
      left: 0;
      right: 0;
      text-align: center;
      font-size: 32px;
      font-weight: bolder;
      color: #fff;
      line-height: 60px;
      z-index: 2;
    }
    .desc {
      position: absolute;
      top: 128px;
      font-size: 16px;
      line-height: 28px;
      text-align: center;
      color: #fff;
      left: 0;
      right: 0;
      font-weight: 700;
      z-index: 2;
    }
    .abilities-contianer {
      display: flex;
      justify-content: center;
      .ability-item {
        flex: 1;
        height: 643px;
        position: relative;
        overflow: hidden;
        display: block;
        transition: all 0.5s linear;
        .bg {
          height: 100%;
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
          transition: all 0.3s;
        }
        .content {
          position: absolute;
          width: 100%;
          top: 383px;
          padding: 40px 50px;
          text-align: center;
          transition: all 0.3s;
          .title1 {
            font-size: 24px;
            font-weight: bolder;
            color: #fff;
            line-height: 40px;
            margin-bottom: 16px;
          }
          .desc1 {
            font-size: 14px;
            color: #fff;
            line-height: 28px;
            margin-bottom: 16px;
            text-align: left;
            opacity: 0;
            transition: all 0.3s;
            display: -webkit-box;
            overflow: hidden;
            white-space: normal;
            text-overflow: ellipsis;
            word-wrap: break-word;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            width: 385px;
            margin: auto;
          }
        }
      }
      .ability-item:hover .bg {
        transform: scale(1.1, 1.1);
      }
      .ability-item:hover.content {
        transform: translateY(-110px);
      }
      .ability-item:hover .content .desc1 {
        opacity: 1;
      }
    }
  }
}
</style>